package com.ssyan.adapter.classadapter;

/**
 * @author ssyan
 * @Description TODO
 * @create 2021/8/28 16:51
 * @Version 1.0
 */
public class VoltageAdapter extends Voltage220V implements IVoltage5V{

    //将220V转为5V
    @Override
    public int output5V() {
        //获取到220V电压
        int srcV = output220V();
        int dstV = srcV / 44 ;
        return dstV;
    }
}
